<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="stripes" uri="http://stripes.sourceforge.net/stripes.tld"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
  <head><title>MyIsern 2.0</title></head>
  <meta http-equiv="Pragma" content="no-cache">
  <meta http-equiv="expires" content="0">
  <meta http-equiv="cache-control" content="no-cache">
<body>
MyIsern 2.0
  <table border="0">
  <tr valign="center">
    <td width="10"></td>
    <td align="center">
       <stripes:link href="/index.jsp">
         Home
       </stripes:link>
    </td>
    <td width="10"></td>
    <td align="center">
       <stripes:link href="/selectResearcher.jsp" id="SelectResearcherLink">
         Researchers
       </stripes:link>
    </td>
    <td width="10"></td>
    <td align="center">
       <stripes:link href="/selectOrganization.jsp" id="SelectOrganizationLink">
         Organizations
       </stripes:link>
    </td>
    <td width="10"></td>
    <td align="center">
      <stripes:link href="/selectCollaboration.jsp" id="SelectCollaborationLink">
        Collaborations
      </stripes:link>
    </td>
    <td width="10"></td>
    <td align="center">
       <stripes:link href="/reportDataIntegrity.jsp" id="ReportDataIntegrityLink">
         Data Semantic Check
       </stripes:link>
    </td>
  </tr>  
</table>
  
<hr align="left" width="900">
  <stripes:errors action="/Index.action"/>
  <br/>
  Welcome to MyIsrn 2.0<br/>
  <br/>
  This application is used to facilitate collaboration within the organization called<br/> 
  <stripes:link href="http://isern.iese.de/network/ISERN/pub/">
  International Software Engineering Research Network
  </stripes:link> (ISERN). The applications <br/>
  does this by storing information about researchers, the organizations they represent, <br/>
  and ongoing collaborations. By allowing members of the organization to enter <br />
  information about themselves and their research interests, other members can <br />
  better find collaboration opportunities with similar research areas. <br /> 
  <br />
  Login:
  <stripes:form id="LoginForm" action="/Index.action">
    <c:choose>
      <c:when test="${not empty user}">
        <p>You have logged in successfully!</p>
      </c:when>
      <c:otherwise> 
        <table>
          <tr>
             <td>Username:</td>
             <td><stripes:text name="username"/></td>
          </tr>
          <tr> 
            <td>Password:</td>
            <td><stripes:password name="password"/></td>
          </tr>
          <tr>
            <td></td>
            <td style="text-align: center;">
              <stripes:submit name="login" value="Login"/>
            </td>
          </tr>
        </table>
      </c:otherwise>
    </c:choose>
  </stripes:form>
</body>
</html>

